
<?php include_once "core/config.php" ;?>

<?php
if (!$conn_mysql) {
    echo "Could not connect to server<br />";
}else{
    if (!$db_test) {
        echo "Could not select: phone_manager database<br />";
    }else{
        $querySQL="
           insert into contact (Name,phone)
           values ('$_POST[name]','$_POST[phone_number]')
        ";
        if (!mysql_query($querySQL, $conn_mysql)) {
            echo "insert query <b>faile</b> <br />". mysql_error();
        }else{
            echo "insert query <b>success</b> <br /> <a href='/contact-phone-manager'>Home</a>";
        }
    }
    mysql_close($conn_mysql);
}

;?>

<?php include_once "core/ga.php" ;?>